package com.example.dts;

import org.assertj.core.util.Lists;

import java.util.List;

public enum PaymentReason {

    DAILY_PURCHASES("日常采购"),
    HOLIDAY_PURCHASES("节假日采购"),
    OUTSOURCED_CONTRACT_PROCUREMENT("外包合同采购"),
    HOUSE_RENTAL_FEE("房屋租金"),
    PROPERTY_COSTS("物业费");

    String msg;

    PaymentReason(String msg) {
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public static List<String> toList() {
        List<String> reason = Lists.newArrayList();
        for (PaymentReason value : PaymentReason.values()) {
            reason.add(value.getMsg());
        }
        return reason;
    }
}